package org.byd.dmsja.service;

import com.baomidou.dynamic.datasource.annotation.DS;
import org.byd.dmsja.entity.DmsUserDb;
import org.byd.dmsja.mapper.DmsUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@DS("postgresql")
@Service
public class DmsUserService {
    @Autowired
    private DmsUserMapper dmsUserMapper;

    public DmsUserDb findUserByUserId(String user_id) {

        return dmsUserMapper.findUserByUserId(user_id);
    }

    public List<DmsUserDb> findAllUser() {
        return dmsUserMapper.findAllUser();
    }
}
